-- GENERATED SPELL FOR [Azure Spellweaver] --


function spell0_31403(pUnit, Event) --@Arcane Missiles,n/a--
pUnit:FullCastSpellOnTarget(34447,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_31403', 620, 1)
end

function Sorts_31403(pUnit, Event)
local choix_sorts_31403 = math.random(0, 0)
if choix_sorts_31403 == 0 then
pUnit:RegisterEvent('spell0_31403', 1, 1)
end
end

function mob31403_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_31403', math.random(1500, 3000), 1)
end

function mob31403_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob31403_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob31403_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(31403, 1, 'mob31403_Action')
RegisterUnitEvent(31403, 2, 'mob31403_Leave')
RegisterUnitEvent(31403, 3, 'mob31403_Kill')
RegisterUnitEvent(31403, 4, 'mob31403_Die')
